package com.example.AIstudy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.AIstudy.domain.SetAndExe;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetAndExeDao extends BaseMapper<SetAndExe> {

    //根据套题ID获取全部的试题ID
    @Select("select exerciseID from setandexe where prosetID = #{setID}")
    public List<Integer> getExeIDBySetID(int setID);

    //根据套题ID删除全部的试题对应信息
    @Select("delete from setandexe where prosetID = #{setID}")
    public void deleteBySetID(int setID);
}
